/**  
* @Title: User.java 
* @Description:
* @Copyright: Copyright (c) 2018
* @Company:http://www.sinocon.cn
* @author Administrator  
* @date 2018年3月27日  
* @version 1.0  
*/
package com.yuanlinsu.project.system.user.entity;

import javax.persistence.Id;
import javax.persistence.Table;

import com.yuanlinsu.project.system.BaseEntity;
import com.yuanlinsu.project.system.dept.entity.Dept;

/**
 * @Title: User
 * @Description:
 * @author:Administrator
 * @date 2018年3月27日
 */
@Table(name = "t_sys_user")
public class User extends BaseEntity {
	/** 用户ID */
	@Id
	private Long userId;
	/** 部门ID */
	private Long deptId;
	/** 登录名 */
	private String loginName;
	/** 用户名称 */
	private String userName;
	/** 用户邮箱 */
	private String email;
	/** 手机号码 */
	private String phonenumber;
	/** 密码 */
	private String password;
	/** 盐加密 */
	private String salt;
	/** 类型:Y默认用户,N非默认用户 */
	private String userType;
	/** 帐号状态:0正常,1禁用 */
	private int status;
	/** 拒绝登录描述 */
	private String refuseDes;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private String createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private String updateTime;
	/** 部门对象 */
	private Dept dept;
	/** 角色组 */
	private Long[] roleIds;

	/**
	 * @return the userId
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * @return the deptId
	 */
	public Long getDeptId() {
		return deptId;
	}

	/**
	 * @param deptId
	 *            the deptId to set
	 */
	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	/**
	 * @return the loginName
	 */
	public String getLoginName() {
		return loginName;
	}

	/**
	 * @param loginName
	 *            the loginName to set
	 */
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 *            the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the phonenumber
	 */
	public String getPhonenumber() {
		return phonenumber;
	}

	/**
	 * @param phonenumber
	 *            the phonenumber to set
	 */
	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the salt
	 */
	public String getSalt() {
		return salt;
	}

	/**
	 * @param salt
	 *            the salt to set
	 */
	public void setSalt(String salt) {
		this.salt = salt;
	}

	/**
	 * @return the userType
	 */
	public String getUserType() {
		return userType;
	}

	/**
	 * @param userType
	 *            the userType to set
	 */
	public void setUserType(String userType) {
		this.userType = userType;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the refuseDes
	 */
	public String getRefuseDes() {
		return refuseDes;
	}

	/**
	 * @param refuseDes
	 *            the refuseDes to set
	 */
	public void setRefuseDes(String refuseDes) {
		this.refuseDes = refuseDes;
	}

	/**
	 * @return the createBy
	 */
	public String getCreateBy() {
		return createBy;
	}

	/**
	 * @param createBy
	 *            the createBy to set
	 */
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	/**
	 * @return the createTime
	 */
	public String getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the updateBy
	 */
	public String getUpdateBy() {
		return updateBy;
	}

	/**
	 * @param updateBy
	 *            the updateBy to set
	 */
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	/**
	 * @return the updateTime
	 */
	public String getUpdateTime() {
		return updateTime;
	}

	/**
	 * @param updateTime
	 *            the updateTime to set
	 */
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * @return the dept
	 */
	public Dept getDept() {
		return dept;
	}

	/**
	 * @param dept
	 *            the dept to set
	 */
	public void setDept(Dept dept) {
		this.dept = dept;
	}

	/**
	 * @return the roleIds
	 */
	public Long[] getRoleIds() {
		return roleIds;
	}

	/**
	 * @param roleIds
	 *            the roleIds to set
	 */
	public void setRoleIds(Long[] roleIds) {
		this.roleIds = roleIds;
	}

	/**
	 * @Title:
	 * @Description:
	 * @param userId
	 */
	public User(Long userId) {
		super();
		this.userId = userId;
	}

	/**
	 * @Title:
	 * @Description:
	 * @param loginName
	 */
	public User(String loginName) {
		super();
		this.loginName = loginName;
	}

	/**  
	* @Title: 
	* @Description:  
	*/ 
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**  
	* @Title: 
	* @Description:
	* @param loginName
	* @param email  
	*/ 
	public User(String loginName, String email) {
		super();
		this.loginName = loginName;
		this.email = email;
	}

}
